#include <cpp_primer.h>

using namespace std;

int main()
{
    map<int, int> imap{{1, 1}, {2, 2}, {3, 3}};

    imap[2] = 4;
    imap[2] = 5;
    cout << imap[2] << endl;

    imap.insert({1, 2});
    imap.insert(make_pair(1, 3));
    cout << imap[1] << endl;

    imap.emplace(3, 5);
    cout << imap[3] << endl;

    return 0;

}
